package edu.sctu.fengleilin.month06.day150602.RailWayStation;

/**
 * Created by user09 on 2015/6/6.
 */
public class AbnormalCondition {
    public String condition = "异常";

    public PeopleAppbean peopleAppbean;

    public AbnormalCondition(PeopleAppbean peopleAppbean) {
        this.peopleAppbean = peopleAppbean;
    }


    public void Condition() {
        if (peopleAppbean.getCondition().equals(condition)) {
            System.out.println("有异常情况，疏散乘客");
        } else {
            System.out.println("没有异常情况，安全");
        }
    }
}
